package com.uchiha.nova.core.model.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class TreeVO implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    Long id;
    String label;
    @JsonSerialize(using = ToStringSerializer.class)
    Long parentId;
    Boolean disabled;
    List<TreeVO> children;

    public TreeVO(){
        this.disabled = false;
    }
}
